package services

import (
	"ssims/dao"
	"ssims/models"
)

func GetAllRelation(randp map[string]interface{}) (error, []models.Relation, int64) {
	err, randpData, total := dao.GetAllRelation(randp)
	return err, randpData, total
}

func DelRelation(name string) error {
	err := dao.DelRelation(name)
	return err
}

func UpdateRelation(randp models.Relation) error {
	err := dao.UpdateRelation(randp)
	return err
}

func AddRelation(randp models.Relation) error {
	err := dao.AddRelation(randp)
	return err
}
